package com.biscuit.page.basicservice.design.login.factory;

import com.biscuit.page.basicservice.design.login.strategy.LoginMoreTypeInterface;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

import java.util.List;

/**
 * @author biscuit
 * @createTime 2024/5/22 14:20
 */
@Configuration
public class LoginMoreTypeFactoryConfiguration {

    @Bean
    @Primary
    public LoginMoreTypeFactory initLoginMoreTypeFactory(List<LoginMoreTypeInterface> loginMoreTypeInterfaceList) {
        LoginMoreTypeFactory factory = new LoginMoreTypeFactory();
        factory.setLoginMoreTypeInterfaceList(loginMoreTypeInterfaceList);
        return factory;
    }

}
